# 导入flask
from flask import Flask, render_template
from .views import *
from flask_cors import CORS



def create_app():
    app = Flask(__name__)
    CORS(app)

    # 注册蓝图
    app.register_blueprint(blueprint=blue)

    # 创建flask对象
    return app
